package com.yvon.maple.service.system.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * 更新密码
 *
 * @author : Yvon
 * @since : 2021-09-28
 */
@Data
@ApiModel("更新密码请求参数")
public class UpdatePasswordVO {

    /**
     * ID
     */
    @ApiModelProperty(value = "ID", required = true)
    @NotNull(message = "ID不能为空")
    private Long id;

    /**
     * 旧密码
     */
    @ApiModelProperty(value = "旧密码", required = true)
    @NotNull(message = "旧密码不能为空")
    private String oldPassword;

    /**
     * 新密码
     */
    @ApiModelProperty(value = "新密码", required = true)
    @NotNull(message = "新密码不能为空")
    private String password;
}
